<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{$Category.name} - {:config('web.WEB_TIT')}</title>
<meta name="keywords" content="{$Category.keywords}">
<meta name="description" content="{$Category.description}">
{include file="index/header"}
<div class="filter">
  <div id="subnav" class="subnav" style="display: block;">
    <div class="layui-main">
      <div class="subnav-main">
        <ul>
          <li><a href="/">全部</a></li>
          {foreach CategoryList as $item}
          <li><a href="{:url('cat/'.$item.id)}" {if $cid==$item.id}class="active"{/if}>{$item.name}</a></li>
          {/foreach}
        </ul>
      </div>
    </div>    
  </div>
  <div class="sort">
    <div class="layui-main">
      <div class="sort-main">
        <!--<a href="{:url('cat/'.$cid)}" {if $sort==''}class="active"{/if}>综合排序</a>-->
        <a href="{:url('cat/'.$cid,array('sort'=>'new'))}" {if $sort=='new'}class="active"{/if}>最新<i class="layui-icon" style="vertical-align: -2px;">&#xe625;</i></a>
        <a href="{:url('cat/'.$cid,array('sort'=>'hot'))}" {if $sort=='hot'}class="active"{/if}>销量<i class="layui-icon" style="vertical-align: -2px;">&#xe625;</i></a>
        <a href="{:url('cat/'.$cid,array('sort'=>'quan'))}" {if $sort=='quan'}class="active"{/if}>券额<i class="layui-icon" style="vertical-align: -2px;">&#xe625;</i></a>
        <a href="{:url('cat/'.$cid,array('sort'=>'price'))}" {if $sort=='price'}class="active"{/if}>现价<i class="layui-icon" style="vertical-align: -2px;">&#xe625;</i></a>
        <a href="{:url('cat/'.$cid,array('sort'=>'rate'))}" {if $sort=='rate'}class="active"{/if}>折扣价<i class="layui-icon" style="vertical-align: -2px;">&#xe625;</i></a>
      </div>
    </div>
  </div>
</div>
<div class="goods-list">
  <div class="layui-main">
  <!--产品列表start-->
  {include file="public/goods"}
  <!--产品列表end-->
  </div>
</div>
{include file="index/footer"}
</body>
</html>
